package com.funtl.framework.java.orm.hibernate.dialect;

import java.sql.Types;

import org.hibernate.Hibernate;

/**
 * 自定义MySQL方言，解决字段无法映射问题
 * 
 * @author wmli
 * 
 */
public class MySQLDialect extends org.hibernate.dialect.MySQLDialect {

	public MySQLDialect() {
		super();
		registerHibernateType(Types.LONGNVARCHAR, Hibernate.TEXT.getName());
		registerHibernateType(-1, Hibernate.STRING.getName());
		registerHibernateType(Types.DECIMAL, Hibernate.BIG_DECIMAL.getName());
	}

}
